<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>5-页面输出</title>
	</head>
	<body>
		<div id="output"></div>
			<script type="text/javascript">
				var name = prompt("请输入你的姓名", "姓名");
				document.write("你输入的姓名是" + name);
			</script>
	</body>
</html>